#pragma once
#include "GameBoardController.h"
#include "MyBitmap.h"
#include "User.h"
#include "Client.h"
#include "Helper.h"
#include "Message.h"
#include "MySocket.h"
#include <vector>
using namespace std;
// CGameBoardDlg dialog

class CGameBoardDlg : public CPropertyPage
{
	DECLARE_DYNAMIC(CGameBoardDlg)

public:
	void Logout() ;
	void Init();
	CGameBoardDlg();
	virtual ~CGameBoardDlg();
	GameBoardController* _gameBoard;
// Dialog Data
	enum { IDD = IDD_GAME_BOARD };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	void Update();
	void Draw();
	CListBox _myUserBox;
	char* invitedUser;
	vector<char*> oldInvitedUser;
	CEdit _myName;
	CEdit _myRivalName;
	CEdit _myStatus;
	DECLARE_MESSAGE_MAP()
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnPaint();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnBnClickedInvite();
	afx_msg void OnLbnSetfocusUserlist();
	afx_msg void OnLbnSelchangeUserlist();
	afx_msg void OnEnChangeEdit2();
	afx_msg void OnBnClickedNew();


	afx_msg void OnBnClickedQuit();
	afx_msg void OnBnClickedExit();
	afx_msg void OnBnClickedLogout();

	

	afx_msg void OnBnClickedEditProfile();
};
